﻿namespace Jinjia.Approve.Entity.Entity
{
    ///<summary>
    ///采购申请单明细
    ///表cg_planned_order_details_tbl的实体类
    ///</summary>
    public class cg_planned_order_details_tbl
    {
        /// <summary>
        /// id
        /// </summary>
        public int id { get; set; }

        /// <summary>
        /// 商品编码
        /// </summary>
        public string spec_no { get; set; }

        /// <summary>
        /// 可发库存
        /// </summary>
        public decimal stock_num { get; set; }

        /// <summary>
        /// 采购在途数量
        /// </summary>
        public decimal purchase_num { get; set; }

        /// <summary>
        /// 调拨在途数量
        /// </summary>
        public decimal transfer_num { get; set; }

        /// <summary>
        /// 7日销售量
        /// </summary>
        public decimal sevendays_sales_num { get; set; }

        /// <summary>
        /// 14日销量
        /// </summary>
        public decimal forteendays_sales_num_nopromotion { get; set; }

        /// <summary>
        /// 申请数量
        /// </summary>
        public int num { get; set; }

        /// <summary>
        /// 未引用数量
        /// </summary>
        public int unreferenced_num { get; set; }

        /// <summary>
        /// 原币单价
        /// </summary>
        public decimal price { get; set; }

        /// <summary>
        /// 人民币单价
        /// </summary>
        public decimal price_rmb { get; set; }

        /// <summary>
        /// 原币金额
        /// </summary>
        public decimal amount { get; set; }

        /// <summary>
        /// 人民币金额
        /// </summary>
        public decimal amount_rmb { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 作废人
        /// </summary>
        public int cancellation_user_id { get; set; }

        /// <summary>
        /// 作废时间
        /// </summary>
        public System.DateTime cancellation_time { get; set; }

        /// <summary>
        /// 作废数量
        /// </summary>
        public int cancellation_num { get; set; }

        /// <summary>
        /// 申请单号
        /// </summary>
        public string planned_no { get; set; }

        /// <summary>
        /// 已采购数量
        /// </summary>
        public int purchased_num { get; set; }

        /// <summary>
        /// 30日销量
        /// </summary>
        public decimal thirtydays_sales_num { get; set; }

        /// <summary>
        /// deleted
        /// </summary>
        public int deleted { get; set; }

        /// <summary>
        /// 头表ID
        /// </summary>
        public int master_id { get; set; }

        /// <summary>
        /// 旺店通采购数量
        /// </summary>
        public decimal purchase_num_wdt { get; set; }

        /// <summary>
        /// 中台采购在途
        /// </summary>
        public decimal purchase_num_oak { get; set; }

        /// <summary>
        /// 交期（文本）
        /// </summary>
        public string delivery_time { get; set; }
    }
}